{template 'common/header'}
<ul class="nav nav-tabs">
	<li><a href="{php echo $this->createWebUrl('item')}&op=itemtype">项目分类</a></li>
	<li><a href="{php echo $this->createWebUrl('item')}&op=itemsetting">项目编辑</a></li>
		<li class="active"><a href="{php echo $this->createWebUrl('activity')}">活动编辑</a></li>
	
</ul>   
<form action="{php echo $this->createWebUrl('activityorder')}" method="post"> 
   <div class="panel panel-default"> 
    <div class="panel-body table-responsive"> 
     <table class="table table-hover"> 
      <thead class="navbar-inner"> 
       <tr> 
        <th>id</th> 
        <th>排序</th> 
        <th>活动名称</th> 
        <th>参与人数</th> 
        <th>状态</th>  
        <th>设置</th> 
       </tr> 
      </thead> 
      <tbody> 
        
      {loop $datalist $index $item}
      	<tr>
        <td>{$item['id']}</td> 
                <input type="hidden" name="activityid[]" value="{$item['id']}"/>
        
        <td> <input type="text" class="form-control" style="width:100px;height:30px;" name="activityorder[]" value="{$item['activityorder']}"> </td> 
		<td>{$item['activityname']}</td>
        <td>{$item['activityplayernum']}</td> 
        <td>{if $item['status']==1} <span class="label label-success">上架</span>{else}<span class="label label-default">下架</span>{/if}</td> 
        <td><a href="{php echo $this->createWebUrl('activitydefault',array('id'=>$item['id']))}" class="btn btn-default btn-sm" title="默认"><i class="glyphicon glyphicon glyphicon-ok"></i></a>  <a href="{php echo $this->createWebUrl('activitysetting',array('id'=>$item['id']))}" class="btn btn-default btn-sm" title="修改"><i class="glyphicon glyphicon-cog"></i></a> <a href="{php echo $this->createWebUrl('activitydelete',array('id'=>$item['id']))}" class="btn btn-default btn-sm" onclick="return confirm('确认删除此游戏?')" title="删除"><i class="glyphicon glyphicon-remove"></i></a> </td> 
       </tr>   
       {/loop}     
       <tr><td colspan="6" style="text-align:left;"> <a class="btn btn-default" href="{php echo $this->createWebUrl('activityadd')}"><i class="glyphicon glyphicon-plus"></i> 添加活动</a> <input type="hidden" name="token" value="bd06da03"><input name="submit" type="submit" class="btn btn-primary" value="提交批量排序"></td></tr> 
     </table> 
    </div> 
   </div> 
  </form>
{template 'common/footer'}